<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // obj = 102 -> [102]{ a: 1 };
      const obj = { a: 1 };
      function A() {
        return obj; //102
      }
      function B() {
        return obj; //102
      }
      const a = new A();
      const b = new B();
      console.log(a === b); //102===102
      // console.log(new A() === new B());
    </script>
  </body>
</html>
